package org.feng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * 字典数据表
 *
 * @author : FengShuai
 * @since : 2024/6/27 9:24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_dict_data")
@Schema(name = "字典内容表")
public class SysDictData extends Model<SysDictData> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(title = "主键")
    private Long id;
    /**
     * 字典id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(title = "主键")
    private Long dictId;
    /**
     * 字典名称
     */
    @Schema(title = "字典名称")
    private String dictName;
    /**
     * 字典内容
     */
    @Schema(title = "字典内容")
    private String dictValue;
    /**
     * 排序
     */
    @Schema(title = "排序")
    private Integer sort;
    /**
     * 状态 0 停用 1 正常
     */
    @Schema(title = "状态 0 停用 1 正常")
    private Boolean status;
    /**
     * 备注
     */
    @Schema(title = "备注")
    private String remark;
}
